<html>
<head>
<!--Load the AJAX API-->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://wattdepot-gdata.googlecode.com/svn/trunk/src/javascript/ajile/com.iskitz.ajile.js?mvcoff,mvcshareoff,refresh"></script>
<script type="text/javascript" src="org.wattdepot.gdata.GDataLoader.js"></script>

<script type="text/javascript">
  // Wrap this code in an anonymous self-invoking function to avoid polluting global namespace.
  (function() {
    // Get one spreadsheet URL
    var url1 = 'https://spreadsheets.google.com/tq?key=0An9ynmXUoikYdEZOY1djQ014eFd2WkhUcWdvbXRtMEE';
    // How frequently we want this spreadsheet data to be refreshed (in seconds).
    var refreshInterval = 3600; 
    // Load the visualization API and the spreadsheet data, then call displayDormData.
    var loader = new org.wattdepot.gdata.GDataLoader(displayDormData, url1, refreshInterval);  
      
  // Show that data can be retrieved from the passed datatable.
  function displayDormData(datatable) {
    document.write("GDataLoader test 1. Data (0,0) is: " + datatable.getFormattedValue(0,0));
  }

})();
</script>
</head>

<body>
</body>
</html>


